<nz-breadcrumb class="breadcrumb-pos">
  <i nz-icon type="link" theme="outline" style="color:#1890FF;padding-right:4px"></i>
  <nz-breadcrumb-item>
    <a routerLink="/main/roles">角色管理</a>
  </nz-breadcrumb-item>
  <nz-breadcrumb-item>
    修改角色
  </nz-breadcrumb-item>
</nz-breadcrumb>
<div class="addrole_div">
  <label>名称：</label>
  <input nz-input [(ngModel)]="name" (focus)="nameOnFocus()"  placeholder="请输入名称" >
  <nz-form-explain class="checkResult" *ngIf="nameCode == -1">请输入名称!</nz-form-explain>
  <label>说明：</label>
  <textarea nz-input ngModel nzAutosize [(ngModel)]="profile" (focus)="profileOnFocus()" placeholder="请输入备注"></textarea>
  <nz-form-explain class="checkResult" *ngIf="profileCode == -1">请输入备注!</nz-form-explain>
  <label>权限：</label>
  <nz-tree
      #treeCom
      [nzData]="nodes"
      nzCheckable="true"
      nzMultiple="true"
      [nzShowExpand]="false"
      (nzCheckBoxChange)="nzCheck($event)">
  </nz-tree>

    <button nz-button nzType="primary" (click)="submitRole()" style="margin-right:100px;">提交</button>
    <button nz-button nzType="primary" routerLink="/main/roles">返回</button>
</div>
  
